package com.hejielife.producerconsumer6;

import java.util.concurrent.Exchanger;

public class Main {
	public static void main(String[] args) {
		Exchanger<char[]> exchanger = new Exchanger<char[]>();
		char[] b1 = new char[10];
		char[] b2 = new char[10];
		new ProducerThread(exchanger, b1, 314159).start();
		new ConsumerThread(exchanger, b2, 123456).start();
	}
}
